package edu.ustb.efws.base.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("新增报警设置")
public class AlarmSaveForm {
    @ApiModelProperty(value = "用户编号", required = true)
    @NotBlank
    private Long userId;
    @ApiModelProperty(value = "是否开启报警", required = true)
    @NotNull
    private Boolean enable = true;
    @ApiModelProperty(value = "接收报警点编号集合")
    public List<Integer> positionIds;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public List<Integer> getPositionIds() {
        return positionIds;
    }

    public void setPositionIds(List<Integer> positionIds) {
        this.positionIds = positionIds;
    }
}
